package com.kitbox.hl.meshow.framenwork.listener.lmpl;

import com.kitbox.hl.meshow.framenwork.listener.ListenerService;
import org.camunda.bpm.engine.delegate.DelegateTask;
import org.camunda.bpm.engine.delegate.TaskListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Auther: honglei
 * @Date: 2019/8/8 11:19
 * @Description: 任务监听器  可以监听 create，assignment、complete、delete事件
 */
@Component
public class MyTaskCreateListener implements TaskListener {
    @Autowired
    private ListenerService listenerService;


    /*****
     * 任务
     * @param delegateTask
     */
    @Override
    public void notify(DelegateTask delegateTask) {
        listenerService.notify(delegateTask);
    }
}
